package com.example.baseutils;

import android.app.Activity;
import android.content.Context;
import android.util.Size;
import android.view.WindowManager;

/**
 * Author by lp,on 2022/2/7/007,16:36.
 */
public class ScreenUtils {
    public static Size getScreenSize(Activity activity) {
        WindowManager wm1 = activity.getWindowManager();
        int width1 = wm1.getDefaultDisplay().getWidth();
        int height1 = wm1.getDefaultDisplay().getHeight();
        return new Size(width1, height1);
    }
}
